#!/bin/bash

apt -y install nginx

apt -y install mysql-server-5.7

apt install php7.2-fpm php7.2-bcmath php7.2-bz2 php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-xml php7.2-xsl -y


cd /etc/php/7.2/fpm/
mv php.ini php.ini.bak
curl -O https://gitee.com/shibaolin/shell/raw/master/php72/php.ini

cd /etc/php/7.2/fpm/pool.d/
mv www.conf www.conf.bak
curl -O https://gitee.com/shibaolin/shell/raw/master/php72/pool.d/www.conf


cd /etc/nginx/sites-available/
mv default default.bak
curl -O https://gitee.com/shibaolin/shell/raw/master/nginx/sites-available/default

service php7.2-fpm restart
# service nginx restart